<html lang="en"><head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Connect Web Server</title>


    <!-- Framework CSS -->
    
    <link rel="stylesheet" href="static/css/blueprint/screen.css" type="text/css" media="screen, projection">
    <link rel="stylesheet" href="static/css/blueprint/print.css" type="text/css" media="print">
    <!--[if lt IE 8]><link rel="stylesheet" href="static/css/blueprint/ie.css" type="text/css" media="screen, projection"><![endif]-->

    <!-- Import fancy-type plugin for the sample page. -->
    <link rel="stylesheet" href="static/css/blueprint/fancytype.css" type="text/css" media="screen, projection">
    
    <!-- Custom styles to override framework -->
     <link rel="stylesheet" href="static/css/main.css" type="text/css" media="screen, projection">
  </head>
<body>
    <div class="container">
   
   <div class="right box"> ${server.time.getTimeString()} ${server.time.getDateString()}
   <#if !session.isAnonymous()>
   <br/> User: ${session.getUser()} [<a href="doLogout">Logout</a>]
   <#else>
   <form action="/doLogin" method="GET" >
Username:<input name="name" type="text" /><BR/> Password:<input name="password" type="password"/><button name="Submit" type="submit">Login</button> 
</form>
   </#if>
 
   
   </div>
    
     <br/>
      <h1><a href="/"><img src="static/images/ConnectLogo.png"  alt="Connect" style="vertical-align:middle;" ></a>  Connect Web Server</h1>
      
      <hr>
      <h2 class="alt">Welcome to Connect, the web server and server side scripting environment that makes web development fun again.</h2>
      <hr>
      <div class="span-7 colborder">
        <h2>Scripting</h2>
        <p>Whether your processing a submitted form, or querying a backend datasource, sometimes you just have to do server side processing. Connect lets you do all that in a language that all web developers are familiar with - Javascript. </p>
      </div>
      <div class="span-8 colborder">
        <h2>Templated pages</h2>
        <p>Connect uses the Freemarker(Link) templating language to produce awesome web pages with minimal coding. Connect also adds some additional tags to access your datasources, without writing a line of code.</p>
      </div>
      <div class="span-7 last">
        <h2>Datasources</h2>
        <p>A web site is pretty boring without some information, and Connect gives you the ability to configure any number of data sources for your site. Once configured, your  datasources can be accessed through your template pages, or through your server side scripts.</p>
      </div>
      <hr>
      <hr class="space">
      <div class="span-15 prepend-1 colborder">
        <h3>&quot;Connect is a web server, with all of the good bits, none of the bad bits, designed by web developers for web developers, to get sites built fast.&quot;</h3>
        <p>&nbsp;</p>
        <p>Written in Java, Connect is a multi-platform web development environment that lets you get web sites, apps, mashups, and services up and running quickly, and with pluggable authentication, you can do it securely as well. </p>
        <p>&nbsp;</p>
        <p>Connect uses the Freemarker templating engine to build rich web pages, and allows access to a variety of backend datasources (Text, CSV, XML, JDBC, LDAP, Webservices). In conjunction with templated web pages, Connect provides a Javascript based server side scripting environment, with access to the backend datasources, for processing forms,  creating webservices, and generating reports.</p>
<p>&nbsp; </p>
        <p>Connect will conitnue to grow with additional support for different authentication sources, and different data sources. If you have a particular requirement that is not supported yet, please let us know, and we will endeavour to include those features in upcoming releases.</p>
        <p>&nbsp;</p>
        <h4>What Connect is not.</h4>
        <p>&nbsp;</p>
        <p>Connect is not NodeJS - you dont need to build a HTTP server to get up and running, or have a detailed knowledge of coding. Connect makes it easy to just create your scripts and get running ! </p>
        <p>&nbsp;</p>
        <p>Connect is not a J2EE server - although its built on Java, you dont really need to know anything about Java to start building sites with Connect. (If you are a Java geek, there are ways to access Java classes from the scripting environment - check out the scripting guide to find out how).</p>
        <p>&nbsp;</p>
        <p>Connect is not Apache - but it can be used as a simple web server ! Files stored under the &quot;serverRoot&quot; folder are accessable through your browser, just like any old web server. This means you can load up any Javascript client libraries, CSS files, Images, and other HTML goodies under the serverRoot folder for use in your sites.</p>
        <p>&nbsp;</p>
        <hr>
       
        
      </div>
      <div class="span-7 last">
        <h3>Where to from here ?</h3>
        <p>We are working on setting up an online forum for the Connect developer community. In the meantime, check out the resource below:</p>
        <p>&nbsp;</p>
        <h4>Scripting</h4>
        <ul>
          <li><a href="script/helloworld">Hello World !</a>&nbsp;&nbsp;[<a href="script/helloworld?viewSource">View Source</a>]</li>
          <li><a href="script/example2">Example 2</a>&nbsp;&nbsp;[<a href="script/example2?viewSource">View Source</a>]</li>
          <li><a href="script/json">Returning JSON data</a>&nbsp;&nbsp;[<a href="script/json?viewSource">View Source</a>]</li>
          <li><a href="script/requestProcessing?one=item1&this=that">Processing Requests</a>&nbsp;&nbsp;[<a href="script/requestProcessing?viewSource">View Source</a>]</li>
          <li>Accessing Datasources:
            <ul>
             <li><a href="script/folds">Folder</a>&nbsp;&nbsp;[<a href="script/folds?viewSource">View Source</a>]</li>
              <li><a href="script/fds">Text</a>&nbsp;&nbsp;[<a href="script/fds?viewSource">View Source</a>]</li>
              <li><a href="script/cds">CSV</a>&nbsp;&nbsp;[<a href="script/cds?viewSource">View Source</a>]</li>
              <li><a href="script/xds">XML</a>&nbsp;&nbsp;[<a href="script/xds?viewSource">View Source</a>]</li>
              <li><a href="script/jds">JDBC</a>&nbsp;&nbsp;[<a href="script/jds?viewSource">View Source</a>]</li>
              <li><a href="script/lds">LDAP</a>&nbsp;&nbsp;[<a href="script/lds?viewSource">View Source</a>]</li>
              <li><a href="script/xwds">XMLWebService</a>&nbsp;&nbsp;[<a href="script/xwds?viewSource">View Source</a>]</li>
              <li><a href="script/jwds">JSONWebService</a>&nbsp;&nbsp;[<a href="script/jwds?viewSource">View Source</a>]</li>
            </ul>
          </li>
          <li><a href="static/scriptingRef.html">Scripting Reference</a></li>
        </ul>
<h4>Templated Pages</h4>
        <ul>
          <li><a href="helloWorld">Hello World</a>&nbsp;&nbsp;[<a href="helloWorld?viewSource">View Source</a>]</li>
          <li><a href="helloWorldPrivate">Hello World - secured</a>&nbsp;&nbsp;[<a href="helloWorldPrivate?viewSource">View Source</a>]</li>
          <li>Accessing Datasources:
            <ul>
          		<li><a href="csvData">CSV</a>&nbsp;&nbsp;[<a href="csvData?viewSource">View Source</a>]</li>
          		<li><a href="folderData">Folder</a>&nbsp;&nbsp;[<a href="folderData?viewSource">View Source</a>]</li>
              	<li><a href="textData">Text</a>&nbsp;&nbsp;[<a href="textData?viewSource">View Source</a>]</li>
              	<li><a href="xmlData">XML</a>&nbsp;&nbsp;[<a href="xmlData?viewSource">View Source</a>]</li>
             	
              	<li><a href="jdbcData">JDBC - World data</a>&nbsp;&nbsp;[<a href="jdbcData?viewSource">View Source</a>]</li>
              	<li><a href="ldapData">LDAP</a>&nbsp;&nbsp;[<a href="ldapData?viewSource">View Source</a>]</li>
              	<li><a href="webServiceXMLData">XMLWebService</a>&nbsp;&nbsp;[<a href="webServiceXMLData?viewSource">View Source</a>]</li>
              	<li><a href="webServiceJSONData">JSONWebService</a>&nbsp;&nbsp;[<a href="webServiceJSONData?viewSource">View Source</a>]</li>
          	</ul>
          <li>Datasource</li>
          <li>Forms</li>
          <li><a href="http://freemarker.org" target="external">Freemarker website</a></li>
          <li><a href="static/freemarkerExtensions.html">Connect Freemarker extensions</a></li>
        </ul>
        
        <h4>Mashups</h4>
        <p> Just a couple of simple application examples ...</p>
        <ul>
        <li><a href="AddressBook">AddressBook</a>&nbsp;&nbsp;[<a href="AddressBook?viewSource">Page Source</a> | <a href="script/AddressBook?viewSource">Script Source</a>]</li>
          <li><a href="graph">Graph</a>&nbsp;&nbsp;[<a href="graph?viewSource">Page Source</a> </li>
            <li><a href="sequence">Sequence</a>&nbsp;&nbsp;[<a href="sequence?viewSource">Page Source</a> ]</li>
        
        <page name="securePage" src="example.ftl" visibility="private"/>
	<page name="sequence" src="examples/sequence.ftl" visibility="public"/>
	<page name="graph" src="examples/graph.ftl" visibility="public"/>
         </ul>
         <br/>
         
        <h4>Server</h4>
        <ul>
          <li><a href="static/serverConfigGuide.html">Server Configuration Guide</a></li>
         
            <li><a href="restart">Restart Server</a></li>
        </ul>
      </div>
      <hr>
      <h2 class="alt">Happy web developing !</h2>
      <hr>
      <div class="last quiet right"> 
          <a href="http://www.binarycube.com"><img src="static/images/logo-bw.png" width="150" /></a><br/>
      </div>
</div>
  

</body></html>